package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.WebSeckillMapper;
import teach.aistar.model.entity.WebSeckill;
import teach.aistar.service.IWebSeckillService;

import java.util.List;

@Service
@Transactional
public class WebSeckillServiceImpl implements IWebSeckillService {
    @Autowired
    private WebSeckillMapper webSeckillMapper;


    @Override
    public List<WebSeckill> selectWebSeckillAll() {
        return webSeckillMapper.selectWebSeckillAll();
    }

    @Override

    public WebSeckill findId(Long id) {
        return webSeckillMapper.findId(id);
    }

    public int insert(WebSeckill webSeckill) {
        return webSeckillMapper.insert(webSeckill);
    }

    @Override
    public WebSeckill findById(long id) {
        return webSeckillMapper.findById(id);
    }

}
